Optimal. Leaf size=77 \[ \frac{b^2 \tanh ^{-1}\left (\frac{\sqrt{a+b \sqrt{x}}}{\sqrt{a}}\right )}{2 a^{3/2}}-\frac{b \sqrt{a+b \sqrt{x}}}{2 a \sqrt{x}}-\frac{\sqrt{a+b \sqrt{x}}}{x} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.101619, antiderivative size = 77, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.294 \[ \frac{b^2 \tanh ^{-1}\left (\frac{\sqrt{a+b \sqrt{x}}}{\sqrt{a}}\right )}{2 a^{3/2}}-\frac{b \sqrt{a+b \sqrt{x}}}{2 a \sqrt{x}}-\frac{\sqrt{a+b \sqrt{x}}}{x} \]
Antiderivative was successfully verified.
[In] Int[Sqrt[a + b*Sqrt[x]]/x^2,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 10.0583, size = 63, normalized size = 0.82 \[ - \frac{\sqrt{a + b \sqrt{x}}}{x} - \frac{b \sqrt{a + b \sqrt{x}}}{2 a \sqrt{x}} + \frac{b^{2} \operatorname{atanh}{\left (\frac{\sqrt{a + b \sqrt{x}}}{\sqrt{a}} \right )}}{2 a^{\frac{3}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((a+b*x**(1/2))**(1/2)/x**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0608848, size = 66, normalized size = 0.86 \[ \frac{b^2 \tanh ^{-1}\left (\frac{\sqrt{a+b \sqrt{x}}}{\sqrt{a}}\right )}{2 a^{3/2}}+\left (-\frac{b}{2 a \sqrt{x}}-\frac{1}{x}\right ) \sqrt{a+b \sqrt{x}} \]
Antiderivative was successfully verified.
[In] Integrate[Sqrt[a + b*Sqrt[x]]/x^2,x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.011, size = 59, normalized size = 0.8 \[ 4\,{b}^{2} \left ({\frac{1}{{b}^{2}x} \left ( -1/8\,{\frac{ \left ( a+b\sqrt{x} \right ) ^{3/2}}{a}}-1/8\,\sqrt{a+b\sqrt{x}} \right ) }+1/8\,{\frac{1}{{a}^{3/2}}{\it Artanh} \left ({\frac{\sqrt{a+b\sqrt{x}}}{\sqrt{a}}} \right ) } \right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((a+b*x^(1/2))^(1/2)/x^2,x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(b*sqrt(x) + a)/x^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.2685, size = 1, normalized size = 0.01 \[ \left [\frac{b^{2} x \log \left (\frac{\sqrt{a} b \sqrt{x} + 2 \, \sqrt{b \sqrt{x} + a} a + 2 \, a^{\frac{3}{2}}}{\sqrt{x}}\right ) - 2 \,{\left (\sqrt{a} b \sqrt{x} + 2 \, a^{\frac{3}{2}}\right )} \sqrt{b \sqrt{x} + a}}{4 \, a^{\frac{3}{2}} x}, -\frac{b^{2} x \arctan \left (\frac{a}{\sqrt{b \sqrt{x} + a} \sqrt{-a}}\right ) +{\left (\sqrt{-a} b \sqrt{x} + 2 \, \sqrt{-a} a\right )} \sqrt{b \sqrt{x} + a}}{2 \, \sqrt{-a} a x}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(b*sqrt(x) + a)/x^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 13.4252, size = 105, normalized size = 1.36 \[ - \frac{a}{\sqrt{b} x^{\frac{5}{4}} \sqrt{\frac{a}{b \sqrt{x}} + 1}} - \frac{3 \sqrt{b}}{2 x^{\frac{3}{4}} \sqrt{\frac{a}{b \sqrt{x}} + 1}} - \frac{b^{\frac{3}{2}}}{2 a \sqrt [4]{x} \sqrt{\frac{a}{b \sqrt{x}} + 1}} + \frac{b^{2} \operatorname{asinh}{\left (\frac{\sqrt{a}}{\sqrt{b} \sqrt [4]{x}} \right )}}{2 a^{\frac{3}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((a+b*x**(1/2))**(1/2)/x**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.259851, size = 84, normalized size = 1.09 \[ -\frac{1}{2} \, b^{2}{\left (\frac{\arctan \left (\frac{\sqrt{b \sqrt{x} + a}}{\sqrt{-a}}\right )}{\sqrt{-a} a} + \frac{{\left (b \sqrt{x} + a\right )}^{\frac{3}{2}} + \sqrt{b \sqrt{x} + a} a}{a b^{2} x}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(b*sqrt(x) + a)/x^2,x, algorithm="giac")
[Out]